package com.jl.cloud.consumer.service.impl;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.jl.cloud.commom.base.BaseService;
import com.jl.cloud.consumer.model.Consumer;
import com.jl.cloud.consumer.service.ConsumersService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
@DS("jl-consumer")
public class ConsumersServiceImpl extends BaseService<Consumer> implements ConsumersService {


    @Override
    public List<Consumer> findAll() {
        return this.selectAll();
    }


    @Override
    public void updateTransaction() {
        Consumer consumers = Consumer.builder().id(1).name("77777").build();
        updateById(consumers);
    }
}
